package com.ruoyi.qsng.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品-我的兑换对象 k_my_exchange
 *
 * @author kanglou
 * @date 2023-06-07
 */
@Data
@ApiModel("商品-我的兑换对象 k_my_exchange")
public class KMyExchange extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 兑换人id */
    @Excel(name = "兑换人id")
    @ApiModelProperty("兑换人id")
    private String userId;
    /** 用户账号 */
    @Excel(name = "兑换人")
    @ApiModelProperty("用户账号")
    private String userName;

    /** 商品id */
    @Excel(name = "商品id")
    @ApiModelProperty("商品id")
    private String commodityId;

    /** 主键 */
    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("是否核销  默认0未核销， 1已核销")
    private Long isExchange;

    /** 商品名称 */
    @Excel(name = "商品名称")
    @ApiModelProperty("商品名称")
    private String commodityName;

    /** 商品首页图片 */
    @Excel(name = "商品首页图片")
    @ApiModelProperty("商品首页图片")
    private String picture;

    /** 商品分类,对应表k_commodity_type */
    @ApiModelProperty("商品分类,对应表k_commodity_type")
    private String type;

    /** 商品分类,对应表k_commodity_type */
    @Excel(name = "商品分类")
    @ApiModelProperty("商品分类,对应表k_commodity_type")
    private String typeStr;

    /** 商品详情 */
    @Excel(name = "商品详情")
    @ApiModelProperty("商品详情")
    private String content;

    /** 积分 */
    @Excel(name = "积分")
    @ApiModelProperty("积分")
    private Integer integral;

    @ApiModelProperty("库存")
    private Long inventory;

    /** 微信id */
    @ApiModelProperty("微信id")
    private String openId;
    /** 密码 */
    @ApiModelProperty("密码")
    private String password;
    @ApiModelProperty("手机号")
    private String phone;
    /** 用户头像 */
    @ApiModelProperty("用户头像")
    private String avatar;
    /** 学员姓名 */
    @ApiModelProperty("学员姓名")
    private String nickName;
    /** 学员年龄 */
    @ApiModelProperty("学员年龄")
    private Integer nickAge;
    /** 学员民族 */
    @ApiModelProperty("学员民族")
    private String nickNation;
    /** 学员身份证件号 */
    @ApiModelProperty("学员身份证件号")
    private String nickCard;
    /** 家长姓名 */
    @ApiModelProperty("家长姓名")
    private String homeName;
    /** 家长电话 */
    @ApiModelProperty("家长电话")
    private String homePhone;
    /** 所在学校 */
    @ApiModelProperty("所在学校")
    private String nickSchool;
    /** 所在年级 */
    @ApiModelProperty("所在年级")
    private String nickLevel;

    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setCommodityId(String commodityId)
    {
        this.commodityId = commodityId;
    }

    public String getCommodityId()
    {
        return commodityId;
    }
    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("commodityId", getCommodityId())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("openId", getOpenId())
            .append("userName", getUserName())
            .append("password", getPassword())
            .append("phone", getPhone())
            .append("avatar", getAvatar())
            .append("nickName", getNickName())
            .append("nickAge", getNickAge())
            .append("nickNation", getNickNation())
            .append("nickCard", getNickCard())
            .append("homeName", getHomeName())
            .append("homePhone", getHomePhone())
            .append("nickSchool", getNickSchool())
            .append("nickLevel", getNickLevel())
            .append("typeStr", getTypeStr())
            .toString();
    }
}
